20. GPIO Commands > 20.2 AT^SCPIN   Pin Configuration

20.2
AT^SCPIN   Pin Configuration
The AT^SCPIN write command serves to add (or remove) and configure pins.
Syntax
Test Command  
Response(s)
^SCPIN:(list of supported <mode>s), (list of supported <pin_id>s), (list of supported <direction>s), (list of supported <startValue>s)
Write Command  
Response(s)
Reference(s) 
PIN 
ASC0 
ASC1 
USB 
MUX1 
MUX2 
MUX3 
Charge 
Last 

Parameter Description
 
<mode>(num)
0
Close pin
1
Open pin
 
Pin identifier
0
GPIO1
1
GPIO2
2
GPIO3
3
GPIO4
4
GPIO5
5
GPIO6
6
GPIO7
7
GPIO8
8
GPIO9
9
GPIO10 - The GPIO10 pin can be used either as GPIO or as pulse counter. If configured as GPIO, the pulse counter option cannot be enabled. Vice versa, if configured as pulse counter the GPIO option is not available. See AT^SCCNT and AT^SSCNT for further details on the pulse counter.
 
Parameter <direction> is mandatory when opening a pin, but can be omitted when closing a pin
0
Input
1
Output
 
Can be set only for outputs.
[0]
Low
1
High


Notes
•
•